<%@ page import="java.util.Date" %><%--
  Created by IntelliJ IDEA.
  User: 86176
  Date: 2020/4/22
  Time: 12:18
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%--使用include指令包含一个页面--%>
<%@include file="subMe.jsp"%>
<html>
  <head>
    <title>HelloWorld</title>
  </head>
  <body>
  HelloWorld!
  <%
    // 包路径名或者使用page指令的import引入包
    java.util.Date date = new Date();
    //out.println(date.toString());
  %>
  <%=date.toString()%>
  include动作结果：
  <jsp:include page="show.jsp">
    <jsp:param name="name" value="qst"/>
    <jsp:param name="password" value="123"/>
  </jsp:include>

  forward动作结果：
  <jsp:forward page="show2.jsp">
    <jsp:param name="name" value="qst2"/>
    <jsp:param name="password" value="1234"/>
  </jsp:forward>

  useBean动作的使用：
  <jsp:useBean id="stuBean" class="com.dzxy.bean.Student" >
    <jsp:setProperty name="stuBean" property="stuName" value="zhangsan"></jsp:setProperty>
  </jsp:useBean>

  <%
    stuBean.doStuding();
  %>
  </body>
</html>
